<?php
class sfWidgetFormOrderByChoice extends sfWidgetFormChoice {


    public function render($name, $value = null, $attributes = array(), $errors = array())
    {
        $choices = $this->getChoices();
        $lable = "";
        $html = "";
        $wid = new sfWidgetFormChoice(array('expanded'=>true,'choices'=>$choices['Fields']));
        $html .= "Fields : <br>".$wid->render("$name"."[fields]");
        
        $wid = new sfWidgetFormChoice(array('expanded'=>true,'choices'=>$choices['Type']));
        $html .= "<br>Type : <br>".$wid->render("$name"."[type]");
        return $html;
    }


    
    


}